<?php
// +----------------------------------------------------------------------
// | A3Mall
// +----------------------------------------------------------------------
// | Copyright (c) 2020 http://www.a3-mall.com All rights reserved.
// +----------------------------------------------------------------------
// | Author: xzncit <158373108@qq.com>
// +----------------------------------------------------------------------

namespace app\common\model\order;

use app\common\model\base\Base;

class OrderAppeal extends Base
{
    //维权判罚    
    //判发方
    public const JUDGE_TYPE_PUBLISH=1;
    //判接方
    public const STATUS_WAIT_TAKE=2;
    //平判
    public const STATUS_WAIT_FAIR=3;


    //状态文本映射
    private static $judge_type_text_mapping=[
        self::JUDGE_TYPE_PUBLISH=>'判发方',
        self::STATUS_WAIT_TAKE=>'判接方',
        self::STATUS_WAIT_FAIR=>'平判',
    ];    

    //获取状态文本
    public static function getJudgeTypeText(int $judge_type){
        return self::$judge_type_text_mapping[$judge_type] ?? '';
    }

    //判断状态是否有效
    public static function isValidJudgeType(int $judge_type)
    {
        return array_key_exists($judge_type,self::$judge_type_text_mapping);
    }

    //获取状态列表
    public static function getJudgeTypeList()
    {
        return self::$judge_type_text_mapping;
    }
}